package com.neusoft.training.podcast.service;

import java.util.List;

import com.neusoft.training.podcast.entity.User;

public interface UserService {
	
	void insert(User user);
	
	void cleanUser(String name);
	
	void deleteUser(String name);
	
	void update(String originalName,String updateName,String updatePwd);
	
	List<User> findAll();
	
	User findByName(String name);
	
	User checkNameExist(String name);
	
	User findByID(Integer userID);
	
	void register(User user);
	
	User login(String name,String pwd);
	
	User checkEmailExist(String email);
	
	List<User> findUserByName(String name);
	
	User findUserByID(Integer userID);
	
	void uploadHeader(String header, Integer userID);
	
	User modifyUserInfo(String Oldname,String NewName,String phoneNum,String password,String email);
	
	List<User> findVideoUser(Integer userID);
	
	List<User> findCommentUser(Integer userID);
	
	List<User> findOtheruser(Integer userID);
	 
	List<User> findCommentVideoUser(Integer userID);
	
}
